﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;



namespace Nasty
{
    public struct Informations
    {
        public string firstName;
        public string lastName;
        public string dateOfBirth; // DD/MM/YYYY
        public string story;
        public string fightingStyle;
    }

    public struct SpriteBiggerSize
    {
        public int width;
        public int height;
    }

    public class Character
    {
        //public const int _Player_ = 1;
        //public const int _Enemies_ = 2;
        //public const int _BreakableObject_ = 3;
        //public const int _Boss_ = 4;   

        #region DefinitionsAttributs

        private int health = 100;
        private int strengh = 100;
        private int agility = 100;
        private int speed = 100;
        private int defense = 100;
        private int power = 100;
        private int palSlot = 1; //Number of palette slot that the player has already unlock
        public Informations charInfo;

        public int Health
        {
            get
            {
                return health;
            }
            set
            {
                health = value;
            }
        }
        public int Strengh 
        {
            get
            {
                return strengh;
            }
            set
            {
                strengh = value;
            }
        }
        public int Agility
        {
            get
            {
                return agility;
            }
            set
            {
                agility = value;
            }
        }
        public int Speed
        {
            get
            {
                return speed;
            }
            set
            {
                speed = value;
            }
        }
        public int Defense
        {
            get
            {
                return defense;
            }
            set
            {
                defense = value;
            }
        }
        public int Power
        {
            get
            {
                return power;
            }
            set
            {
                power = value;
            }
        }
        public int PalSlot
        {
            get
            {
                return palSlot;
            }
            set
            {
                palSlot = value;
            }
        }

        #endregion

        //public Character();

        //enregistrer la progression du joueur dans un fichier XML
        public bool writeProgression()
        {
            //On vérifie qu'un fichier de sauvegarde existe
            //if();
            return true;
        }
    }
}
